<?php
/**
 * Created by PhpStorm.
 * User: YH
 * Date: 2019/5/13
 * Time: 19:46
 */



header("Access-Control-Allow-Origin:*");
header("Content-Type:Application/json;charset=utf-8");

session_start();//开启session



if(!isset($_SESSION["userInfo"])){
    print_r(json_encode(Array("msg" => "请先登录", "status" => -1)));
}else{
    print_r(json_encode(Array("msg" => "已登录", "status" => 1)));
}